from llama_index.embeddings.openai import OpenAIEmbedding
from llama_index.llms.openai_like import OpenAILike

from config import EMBEDDINGMODEL_URL, LLM_URL

embed_model = OpenAIEmbedding(model_name="conan", api_key="sk-xxx", api_base=EMBEDDINGMODEL_URL)
llm = OpenAILike(model="qwen", api_base=LLM_URL, api_key="sk-xxx",is_chat_model=True)